package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.model.entity.orange.OrangeProductSkuChannel;
import com.atmilan.quartz.mapper.OrangeProductSkuChannelMapper;
import com.atmilan.quartz.service.IOrangeProductSkuChannelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * orange商品sku渠道 服务实现类
 * </p>
 *
 * @author wuzp
 * @since 2021-10-20
 */
@Service
public class OrangeProductSkuChannelServiceImpl extends ServiceImpl<OrangeProductSkuChannelMapper, OrangeProductSkuChannel> implements IOrangeProductSkuChannelService {

    @Autowired
    OrangeProductSkuChannelMapper orangeProductSkuChannelMapper;

    @Override
    public void deleteAll() {
        orangeProductSkuChannelMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        orangeProductSkuChannelMapper.deleteProductBack();
        orangeProductSkuChannelMapper.copyProductBack();
    }

}
